import { http } from '../service';

// 停用启用
// 项目成员启用停用
export function changeProjectUserStatus(data: any) {
  return http.middleware({
    url: `/system/Rest/user/changeProjectUserStatus`,
    method: 'POST',
    data,
  });
}

// 查询项目权限
export function getProjectAuth(params: any) {
  return http.middleware({
    url: `/system/Rest/user/projectAuth`,
    method: 'GET',
    params,
  });
}
// 查询版本信息
export function getVersionInfo(params: any) {
  return http.request({
    url: `/system/Rest/sysVersion/notice`,
    method: 'GET',
    params,
  });
}
// 用来测试版本信息显示
// export function getVersionInfo(params: any) {
//   return http.request({
//     url: `/system/Rest/sysVersion/getById`,
//     method: 'GET',
//     params,
//   });
// }
